package stool.compositepattern;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/11
 */
public class StringUtils {

    public static String formatStr(String format, int depth) {

        StringBuilder sb = new StringBuilder();
        do {
            sb.append(format);
            depth --;
        } while (depth > 0);

        return sb.toString();
    }
}
